class CreateGeotags < ActiveRecord::Migration
  def self.up
    create_table :geotags do |t|
      t.string :name, :null => false
      t.decimal :longitude, :precision => 10, :scale => 6, :null => false
      t.decimal :latitude, :precision => 10, :scale => 6, :null => false
      t.timestamps
    end
    
    add_index :geotags, :name
  end
  
  

  def self.down
    drop_table :geotags
  end
end
